home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 14
/
Hot Mix 14.iso
/
HTML
/
vendors
/
finesse
/
examples
/
csh
/
display_primes
< prev
next >
Wrap
Text File
|
1996-06-27
|
839b
|
42 lines
#! /bin/csh
# FINESSEAPPLICATIONKEY sBqQOLxzNvJgQ
#
#
if (! $?FINESSEPATH) set FINESSEPATH = /usr/local/finesse
source $FINESSEPATH/fscshinit
set path = ($path /usr/games)
# Definition
set i = 1
set prf = "tf:background:black"
set prf4 = "tf:foreground:red"
set prf2 = "tf:labelString:Starting..."
set windef = \
"FsWindow -name pw;FsSeparator;FsLabel -label $i -name tf;"
Fsopen
while (1)
Fsdisplay -w $windef:q -n pw -s touch \
-r $prf -r $prf2 -r $prf4
if ( "$fsbutton" == "a" ) then
break
endif
sleep 1
set i = `expr $i + 1`
set wl = (`factor $i`)
shift wl
if ( "$wl[1]" == "$i" ) then
set prf = "tf:background:black"
set prf4 = "tf:foreground:red"
else
set prf = "tf:background:blue"
set prf4 = "tf:foreground:yellow"
endif
set prf2 = "tf:labelString:$i"
end
Fsclose